package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 学术委员会
 * 
 * @author vimesly
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_organization_records_committee")
public class OrganizationRecordsCommittee implements Serializable{

	private Integer id;
	private String memberName; // 成员名称
	private String duty;// 职务
	private String professional;// 职称
	private String specialty;// 专业
	private String unit; // 单位
	private Integer memberType; // 成员类型 1-副主任 2-委员
	private Integer committeeType; // 委员会类型 1-学术 2-伦理

	private OrganizationRecords organizationRecords;
	
	private String username;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "member_name")
	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	@Column(name = "duty")
	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	@Column(name = "professional")
	public String getProfessional() {
		return professional;
	}

	public void setProfessional(String professional) {
		this.professional = professional;
	}

	@Column(name = "specialty")
	public String getSpecialty() {
		return specialty;
	}

	public void setSpecialty(String specialty) {
		this.specialty = specialty;
	}

	@Column(name = "unit")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Column(name = "member_type")
	public Integer getMemberType() {
		return memberType;
	}

	public void setMemberType(Integer memberType) {
		this.memberType = memberType;
	}

	@Column(name = "committee_type")
	public Integer getCommitteeType() {
		return committeeType;
	}

	public void setCommitteeType(Integer committeeType) {
		this.committeeType = committeeType;
	}

	@ManyToOne
	@JoinColumn(name = "organization_records_id")
	public OrganizationRecords getOrganizationRecords() {
		return organizationRecords;
	}

	public void setOrganizationRecords(OrganizationRecords organizationRecords) {
		this.organizationRecords = organizationRecords;
	}
	
	@Column(name = "username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}
